package com.qubuyer.business.mine.activity

import android.os.Bundle
import androidx.fragment.app.Fragment
import com.qubuyer.business.mine.fragment.RebateOrderDetailFragment
import com.qubuyer.business.mine.fragment.SaleAmountDetailFragment

/**
 * @author Susong
 * @date 创建时间2019/6/23
 * @description 折让订单
 * @version
 */
class RebateOrderFragment : TabHostFragment() {
    override fun getTitle(): String {
        return "折让订单"
    }

    override val tabs: Array<String>
        get() = arrayOf("待结算","已结算")

    override fun createFragment(position: Int): Fragment {
        return when (position) {
            0 -> RebateOrderDetailFragment().apply {
                arguments = Bundle().apply { putInt("type", 2) }
            }
            else -> RebateOrderDetailFragment().apply {
                arguments = Bundle().apply { putInt("type", 1) }
            }
        }
    }
}